<template>
  <div class="box" v-if="flag1" :style="{ width, heigth }">
    <h1>给你增加</h1>

    <slot name="aa"></slot>
  </div>
</template>
<script>
export default {
  name: '',
  props: {
    width: {
      type: String
    },
    heigth: {
      type: String
    },
    flag1: {
      type: Boolean
    },
  },
  data () {
    return {

    }
  },
  created () {
  },
  computed: {
  },
  methods: {

  }
}
</script>
<style lang='less'  scoped>
.box {
  width: 100vw;
  height: 100vh;
  background: pink;
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  color: black;
  display: flex;
  justify-content: space-between;
  flex-direction: column;
}
</style>
